package no.gnet.s10.servlet;

import java.io.IOException;
import java.sql.Connection;
import java.sql.SQLException;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;

import no.gnet.s10.broker.Broker;
import no.gnet.s10.types.GenericTransferBean;
import no.gnet.s10.types.Player;
import no.gnet.util.Constants;
import no.gnet.util.ErrorMessage;

/**
 * Servlet implementation class for Servlet: Controller
 *
 */
 public class Activator extends GNetController{

	 /**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	/* (non-Java-doc)
	 * @see javax.servlet.http.HttpServlet#HttpServlet()
	 */
	public Activator() {
		super();
	}   	
	
	/* (non-Java-doc)
	 * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
				String command = request.getParameter("cmd");
				try {
					handleRequest(request, response, command);
				} catch (SQLException e) {
					e.printStackTrace();
				} catch (Exception e) {
					e.printStackTrace();
				}	
	}  	
	
	/* (non-Java-doc)
	 * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}   	  	    
		
	
}